package com.yict.common.entity;

import javax.persistence.MappedSuperclass;
import javax.persistence.Version;


/**
 * 统一定义version的entity基类.
 * 
 * @author Solex
 */
// JPA 基类标识
@MappedSuperclass
public abstract class VersionEntity extends AbstractEntity {
	// @OptimisticLock(excluded = true)
	// @Version
	// @Temporal(TemporalType.TIMESTAMP)
	// private Date version;
	//
	// public Date getVersion() {
	// return version;
	// }
	//
	// public void setVersion(Date version) {
	// this.version = version;
	// }
	@Version
	private Integer version;

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

}
